home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 12 / 9 / DISK1298.ZIP / CHAP12.DOC < prev    next >
Text File  |  1989-01-23  |  10KB  |  475 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.       CHAPTER 12  -   MACROS, LEARN COMMAND AND
  9.                       EXTENDED CHARACTER SET
  10.  
  11.  
  12.  
  13.       3by5 provides Macros that can be used to speed data entry
  14.       or perform a sequence of routine commands.  
  15.  
  16.       A 3by5 Macro file consists of a 3by5 file with 26 fields: A
  17.       through Z.  Each record in the file can contain a set of
  18.       macros that can be loaded into memory.  This means that
  19.       the maximum size of a set of macros is limited to 4800
  20.       bytes.  Larger macros may be simulated by using the
  21.       Utilities-Run Command.
  22.  
  23.       Macros A through W and Y may be executed by holding the
  24.       <Alt> key and pressing the corresponding letter.  The
  25.       contents of the macro will be entered as though you typed
  26.       them at the key board.
  27.  
  28.       There are two special macros: <Alt-X> and <Alt-Z>.
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.                                                        165
  52.  
  53.  
  54.       3by5 Chapter 12
  55.  
  56.       <ALT-X>   Extended Character Set Macro  
  57.  
  58.       The <Alt-X> macro is used to execute the Extended
  59.       Character Set Macro.  This macro is used to enter
  60.       characters beyond the standard ASCII range (e.g. Greek
  61.       and European characters).  
  62.       Press <Alt-X>, and the following menu will be displayed at
  63.       the bottom of the screen:
  64.  
  65.         _____________________________________________________________________
  66.         A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
  67.  
  68.         _____________________________________________________________________
  69.  
  70.  
  71.  
  72.  
  73.       3by5 comes with a file called MACRO.3X5.  It contains
  74.       several macro sets of general use.  
  75.  
  76.       Select a subset of extended characters by pressing A
  77.       through Z.  The program will then display the characters
  78.       available.  Press the letter above the character to be
  79.       entered.
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.        166
  99.  
  100.  
  101.                                                   MACROS
  102.  
  103.       <ALT-Z>
  104.  
  105.       The <ALT-Z> command is used to display the first line of
  106.       any of the available macros.  Press <ALT-Z> and the
  107.       following menu will be displayed:
  108.  
  109.  
  110.         _____________________________________________________________________
  111.         A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
  112.         Contents of macro dislpayed on this line
  113.         _____________________________________________________________________
  114.  
  115.  
  116.       Use the space bar, the back space key or the cursor key
  117.       to move to any letter and the first line of each macro will
  118.       be displayed.  Type the corresponding letter or press
  119.       <Enter> and the selected macro will be executed.
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.                                                        167
  146.  
  147.  
  148.       3by5 Chapter 12
  149.  
  150.       Designing Macros
  151.  
  152.       A 3by5 macro file has records with 26 fields.  The fields
  153.       are named A through Z.  Macros follow the same rules as
  154.       3by5Auto files.  
  155.  
  156.       The ~ character is used to indicate the <Enter> key.
  157.       The ` character is used to indicate the <Esc> key.
  158.  
  159.  
  160.       Special key sequences can be entered in 3by5 macros by
  161.       using the back slash character "\" along with a three digit
  162.       code.  The code value is equal to the IBM BIOS key scan
  163.       code plus 256.  For example, the scan code for the <F4>
  164.       key is 62 and it can entered as "\318".  The back slash
  165.       must be followed by three decimal digits.  Two back
  166.       slashes in a row "\\" are treated as one back slash.  The
  167.       Basic manual that comes with the computer lists the key
  168.       scan codes for the function keys.
  169.  
  170.       The last instruction of a Macro may be a call to another
  171.       Macro or the execution of a 3by5 Program File Record.
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.        168
  193.  
  194.  
  195.                                                   MACROS
  196.  
  197.       LEARN COMMAND
  198.  
  199.       The Learn Command can be used to store key strokes in
  200.       the Temporary Text Buffer 3by5 uses for copying and
  201.       moving blocks of text.  Commands and text are stored
  202.       together.  
  203.  
  204.       Press <Ctrl-F10> and the temporary buffer will be cleared
  205.       of all text and commands.  The message "LEARN" will be
  206.       displayed at the bottom of the screen.  
  207.  
  208.       Any text or commands you type will be stored in the
  209.       Temporary Text Buffer.  As an example, make a copy of
  210.       your 3by5 diskette and erase the file AUTO3BY5.PRG if it
  211.       is present.  The files REF.3X5 and REFSTYLE.3X5 should
  212.       be on the diskette.  The default disk drive should be A. 
  213.       Place the diskette in drive A and type 
  214.  
  215.           3by5 <Enter>
  216.  
  217.       The program will be loaded into memory and the 3by5 Title
  218.       Screen displayed.  Press any key to continue, and the Main
  219.       Menu will be displayed.  Press <Ctrl-F10> and the message
  220.       "LEARN" will be displayed.  Next type:
  221.  
  222.           F                     for the Files Command.
  223.           O                     for the Open Command.
  224.           REF <Enter>           to open REF.3X5
  225.           REFSTYLE <Enter>      to open REFSTYLE.3X5.
  226.           <Esc>                 to return to the Main Menu
  227.           U                     for the Utilities Command
  228.           L                     for the Load Command
  229.           R                     to load a Reference Record
  230.           2                     to select file 2 (REFSTYLE) as
  231.                                 the Reference Style File.
  232.           9 <Enter>             to select record 9
  233.           F                     for the Files Command
  234.           C                     for the Close Command
  235.           2                     to close file 2 (REFSTYLE)
  236.           <Esc>                 to return to the Main Menu
  237.  
  238.  
  239.                                                        169
  240.  
  241.  
  242.       3by5 Chapter 12
  243.  
  244.       Now press <Ctrl-F10> to turn off the Learn Command.
  245.  
  246.       Then build an AUTO3BY5 file as follows:
  247.  
  248.       Type [F] to for the Files Command, [O] for the Open
  249.       Command  and then type [AUTO3BY5.PRG] <Enter>  The
  250.       program will ask if you want to build the file.  Type [Y].  
  251.  
  252.       Build a file with no fields and a record length of 256
  253.       bytes).  Edit record one of the file.  The record should be
  254.       blank and the cursor should be at Line 1 Column 1.  Press
  255.       <Ctrl-F4> to retrieve the text in the 3by5 temporary
  256.       buffer.  The text will appear as follows:
  257.  
  258.           foref~refstyle~`ulr29~fc2`
  259.  
  260.       Note that ~ represents the <Enter> key and ` the <Esc>
  261.       key.
  262.  
  263.       Save the record: press <Esc> then press S.
  264.  
  265.       Exit 3by5 and then restart the program, the new
  266.       AUTO3BY5 file will be loaded and its instructions executed
  267.       (files REF.3X5 and REFSTYLE.3X5 will be opened, the
  268.       reference style for Science will be loaded into memory and
  269.       REFSTYLE.3X5 will be closed).  It is not necessary to close
  270.       the Reference Style File after loading a reference style.
  271.  
  272.       The Learn Command may also be used to develop macro
  273.       commands.  Use <Ctrl-F4> to load the commands into a
  274.       Macro record that you are editing.
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.        170
  287.  
  288.  
  289.                                                   MACROS
  290.  
  291.       Macro codes for special key sequences
  292.  
  293.       Key        Code                Key       Code
  294.  
  295.       Alt-A      \286                Alt-N     \305
  296.       Alt-B      \304                Alt-O     \280
  297.       Alt-C      \302                Alt-P     \281
  298.       Alt-D      \288                Alt-Q     \272
  299.       Alt-E      \274                Alt-R     \275
  300.       Alt-F      \289                Alt-S     \287
  301.       Alt-G      \290                Alt-T     \276
  302.       Alt-H      \291                Alt-U     \278
  303.       Alt-I      \279                Alt-V     \303
  304.       Alt-J      \292                Alt-W     \273
  305.       Alt-K      \293                Alt-X     \301
  306.       Alt-L      \294                Alt-Y     \277
  307.       Alt-M      \306                Alt-Z     \300
  308.  
  309.       Alt-1      \376                Alt-6     \381
  310.       Alt-2      \377                Alt-7     \382
  311.       Alt-3      \378                Alt-8     \383
  312.       Alt-4      \379                Alt-9     \384
  313.       Alt-5      \380                Alt-0     \385
  314.  
  315.       Key             Code
  316.  
  317.       Ctrl-Cursor Lt  \371
  318.       Ctrl-Cursor Rt  \372
  319.       Ctrl-End        \373
  320.       Ctrl-Pg Down    \374
  321.       Ctrl-Pg Up      \388
  322.       Cursor Left     \331
  323.       Cursor Right    \333
  324.       Cursor Up       \328
  325.       Cursor Down     \336
  326.       Del             \339
  327.       End             \335
  328.       Ins             \338
  329.       Pg Down         \337
  330.       Pg Up           \329
  331.  
  332.  
  333.                                                        171
  334.  
  335.  
  336.       3by5 Chapter 12
  337.  
  338.       Key        Code                Key       Code
  339.  
  340.       F1         \315                F6        \320
  341.       F2         \316                F7        \321
  342.       F3         \317                F8        \322
  343.       F4         \318                F9        \323
  344.       F5         \319                F10       \324
  345.  
  346.       Shift-F1   \340                Shift-F6  \345
  347.       Shift-F2   \341                Shift-F7  \346
  348.       Shift-F3   \342                Shift-F8  \347
  349.       Shift-F4   \343                Shift-F9  \348
  350.       Shift-F5   \344                Shift-F10 \349
  351.  
  352.       Ctrl-F1    \350                Ctrl-F6   \355
  353.       Ctrl-F2    \351                Ctrl-F7   \356
  354.       Ctrl-F3    \352                Ctrl-F8   \357
  355.       Ctrl-F4    \353                Ctrl-F9   \358
  356.       Ctrl-F5    \354                Ctrl-F10  \359
  357.  
  358.       Alt-F1     \360                Alt-F6    \365
  359.       Alt-F2     \361                Alt-F7    \366
  360.       Alt-F3     \362                Alt-F8    \367
  361.       Alt-F4     \363                Alt-F9    \368
  362.       Alt-F5     \364                Alt-F10   \369
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.        172
  381.  
  382.  
  383.                                                   MACROS
  384.  
  385.       This page left blank.
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.                                                        173
  428.  
  429.  
  430.       3by5 Chapter 12
  431.  
  432.          
  433.           
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.        174
  475.